import request from '@/utils/request'

// 获取阿里云OSS认证信息
export const getOssAuth = () => {
  return request({
    url: '/AliCloud/getAuth',
    method: 'get'
  })
}

// 上传文件到OSS
export const uploadToOss = (data) => {
  return request({
    url: '/upload/oss',
    method: 'post',
    data,
    headers: {
      'Content-Type': 'multipart/form-data'
    }
  })
}